<template>
	<view>
		<!-- 宫格内容区 -->
		<u-grid :border="true" col="3">
			<u-grid-item v-for="(listItem,listIndex) in list" :key="listItem.id">
				<u-icon :customStyle="{paddingTop:20+'rpx'}" :name="listItem.wap_banner_url" :size="28">
				</u-icon>
				<text class="grid-text">{{listItem.name}}</text>
			</u-grid-item>
		</u-grid>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	export default {
		name: "cd-grid",
		props: ["list"],
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	// 宫格内容区
	// 247,248,249
	.u-grid-item {
		height: 172rpx;
		background-color: #fff !important;
		border: 2rpx solid rgb(247, 248, 249) !important;
		box-sizing: border-box !important;
	}

	.grid-text {
		font-size: 24rpx;
		color: #646566;
		margin-top: 16rpx;
		padding: 10rpx 0 20rpx 0rpx;
		/* #ifndef APP-PLUS */
		box-sizing: border-box;
		/* #endif */
	}
</style>
